package com.cqeec.myblog.service;

import java.util.List;

import com.cqeec.myblog.dao.AlbumDao;
import com.cqeec.myblog.dao.AlbumDaoImpl;
import com.cqeec.myblog.model.Album;

public class AlbumServiceImpl implements AlbumService {
	private AlbumDao albumDao=new AlbumDaoImpl();

	@Override
	public List<Album> findAlbumByBid(String bid) {
		List<Album> list=albumDao.selectAlbumByBid(bid);
		return list;
	}

	@Override
	public void removeById(String aid) {
         albumDao.deleteById(aid);		
	}

	@Override
	public void add(String title, String describ, String bid) {
       albumDao.add(title, describ,bid);		
	}

	@Override
	public void updateAlbum(String id, String title, String describ) {
		// TODO Auto-generated method stub
		albumDao.update(id,title,describ);
	}

	@Override
	public Album selectAlbumById(String id) {
		// TODO Auto-generated method stub
		return albumDao.selectAlbumById(id);
	}

	@Override
	public void updateImages(Album album) {
         albumDao.updateImagesByid(album);		
	}

	
	
	
	

}
